home *** CD-ROM | disk | FTP | other *** search
- ;
- ;
- ; ╔═══════════════════════════════════╗
- ; ║ QMODEM Pop-Up Menus ║
- ; ║ ║
- ; ║ Designed for use with Qmodem V2.0 ║
- ; ║ Mark F. Lewis ║
- ; ║ 06-MAR-86 ║
- ; ║ ║
- ; ║-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-║
- ; ║ This is the unexpanded version ║
- ; ║ QMODEMU.DEF ║
- ; ║ Compile with Microsoft's MAKEMENU ║
- ; ║ To use, type: ║
- ; ║ MENU QMODEMU ║
- ; ║ QMODEM ║
- ; ║ MENU OFF ║
- ; ║ or place the above in a BAT file ║
- ; ║ ║
- ; ╚═══════════════════════════════════╝
- ;
- ; Set up initial labels for mouse commands
-
- begin leftb,mousehlp,bothb,mousel,mouser,mouseu,moused,16,24
-
- ; -------------------- Left Button ---------------------------
-
- ; Start QModem if in init mode, else Main menu menu
-
- leftb: match 25,15,,"Qmodem",Keyspc,redlchk ;Check for initing
- redlchk: match 4,9,,"Re-Dial",dialmen,vchkl ;check for redial
- vchkl: match 5,5,,"Filename",keyspc,vchkn ;check for viewdir
- vchkn: match 2,6,,"View a file",keyspc,menu1 ;Check for viewdir
-
-
- ; --------------------- Both buttons ------------------------
-
- ; Context-contingent cancel
-
- bothb: match 25,15,,"Qmodem",nothing,chkbth
- chkbth: match 1,28,,"Command",return,chkpbookb
- chkpbookb: match 1,12,,"Phone",keyx,keyesc :check for Phone Book
-
- ; -------------------- Mouse left -----------------------
-
- mousel: match 1,3,,"Strip / Convert",left,nothing ;check for xlate table
-
- ; ------------------- Mouse right -----------------------
-
- mouser: match 1,3,,"Strip / Convert",right,nothing ;check for xlate table
-
- ; --------------------- Mouse up -----------------------
-
- mouseu: match 25,6,,"PgUp",Pgup,chkpbooku ;check for scroll back
- chkpbooku: match 1,12,,"Phone",Pgup,stripcku :check for Phone Book
- stripcku: match 1,3,,"Strip / Convert",Up,nothing ;check for xlate table
-
- ; ------------------- Mouse down -----------------------
-
- moused: match 25,6,,"PgUp",PgDn,chkpbookd ;check for scroll back
- chkpbookd: match 1,12,,"Phone",PgDn,stripckd ;check for Phone book
- stripckd: match 1,3,,"Strip / Convert",down,nothing ;check for xlate table
-
- ; Initial menu displayed when left button pressed
-
- menu1: popup 1,24,bold
- text "╔═[ Command Menu 2.0 ]══════════════════════════════════╗"
- text "║ --- Primary --- ║"
- text "║ Clear Screen Redial Last Number ║"
- text "║ Dial Phone DOS Shell ║"
- text "║ SCRIPT Execution Disk Directory ║"
- text "║ Hang-Up Modem Exit Qmodem ║"
- text "║ Change Baud Rates Secondary Menu ║"
- text "║-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-║"
- text "║ Download files Toggles Menu ║"
- text "║ Upload Files Capture File Toggle ║"
- text "║ Scroll Lost lines Back Send modem BREAK Signal ║"
- text "║ Add Linefeed Toggle Printer echo Toggle ║"
- text "║ Cancel Menu ║"
- text "║ ║"
- text "║ Select menu item with Right Button ║"
- text "║ Press Left button or Both Buttons to return ║"
- text "╚═══════════════════════════════════════════════════════╝"
- select 3,3,23,keyaltc
- select 4,3,23,keydial
- select 5,3,23,keyaltf
- select 6,3,23,keyalth
- select 7,3,23,keyaltp
- ;
- select 3,31,23,keyaltq
- select 4,31,23,setdos
- select 5,31,23,keyaltw
- select 6,31,23,exitact
- select 7,31,23,menu2
- ;
- select 9,3,23,pgdn
- select 10,3,23,pgup
- select 11,3,23,Up
- select 12,3,23,shfttab
- select 13,2,22
- ;
- select 9,31,23,menu3
- select 10,31,23,keycthm
- select 11,31,23,keyctnd
- select 12,31,23,keyctpt
- pend
- ;
- setdos: execute keyaltr,shellset
- shellset: assign shelb,mousehlp,bothb,mousel,mouser,mouseu,moused,16,24
- shelb: popup 1,1,bold
- text "╔═[ DOS Shell ]════╗"
- text "║ Return to Qmodem ║"
- text "║ Cancel Menu ║"
- text "╚══════════════════╝"
- select 2,2,18,retshell
- select 3,2,18
- pend
- ;
- retshell: execute shellout,return,noshell
- noshell: assign leftb,mousehlp,bothb,mousel,mouser,mouseu,moused,16,24
- ;
- menu2: popup 1,24,bold
- text "╔═[ Command Menu 2.0 ]══════════════════════════════════╗"
- text "║ -- Secondary -- ║"
- text "║ Translate Table Change Sub-Dirs ║"
- text "║ Function Key Set View a File ║"
- text "║ Log Drive Change Delete a File ║"
- text "║ ║"
- text "║ Primary Menu ║"
- text "║-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-║"
- text "║ Download files Toggles Menu ║"
- text "║ Upload Files Capture File Toggle ║"
- text "║ Scroll Lost lines Back Send modem BREAK Signal ║"
- text "║ Add Linefeed Toggle Printer echo Toggle ║"
- text "║ Cancel Menu ║"
- text "║ ║"
- text "║ Select menu item with Right Button ║"
- text "║ Press Left button or Both Buttons to return ║"
- text "╚═══════════════════════════════════════════════════════╝"
- select 3,3,23,keyalta
- select 4,3,23,keyaltj
- select 5,3,23,keyaltl
- ;
- select 3,31,23,keyalto
- select 4,31,23,keyaltv
- select 5,31,23,keyalty
- select 7,31,23,menu1
- ;
- select 9,3,23,pgdn
- select 10,3,23,pgup
- select 11,3,23,Up
- select 12,3,23,shfttab
- select 13,2,22
- ;
- select 9,31,23,menu3
- select 10,31,23,keycthm
- select 11,31,23,keyctnd
- select 12,31,23,keyctpt
- pend
-
- menu3: popup 1,24,bold
- text "╔═[ Command Menu 2.0 ]══════════════════════════════════╗"
- text "║ --- Toggles --- ║"
- text "║ Beeps and Bells ANSI Music Mode ║"
- text "║ Echo Split Screen Mode ║"
- text "║ ANSI Graphics Mode Screen Dump ║"
- text "║ Program Info Xon / Xoff ║"
- text "║ Secondary Menu ║"
- text "║-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-║"
- text "║ Download files Primary Menu ║"
- text "║ Upload Files Capture File Toggle ║"
- text "║ Scroll Lost lines Back Send modem BREAK Signal ║"
- text "║ Add Linefeed Toggle Printer echo Toggle ║"
- text "║ Cancel Menu ║"
- text "║ ║"
- text "║ Select menu item with Right Button ║"
- text "║ Press Left button or Both Buttons to return ║"
- text "╚═══════════════════════════════════════════════════════╝"
- select 3,3,23,keyaltb
- select 4,3,23,keyalte
- select 5,3,23,keyaltg
- select 6,3,23,keyalti
- ;
- select 3,31,23,keyaltm
- select 4,31,23,keyalts
- select 5,31,23,keyaltt
- select 6,31,23,keyaltz
- select 7,31,23,menu2
- ;
- select 9,3,23,pgdn
- select 10,3,23,pgup
- select 11,3,23,Up
- select 12,3,23,shfttab
- select 13,2,22
- ;
- select 9,31,23,menu1
- select 10,31,23,keycthm
- select 11,31,23,keyctnd
- select 12,31,23,keyctpt
- pend
-
- exitact: execute keyaltx,exitmen
-
- exitmen: popup 6,20,bold
- text "╔═[ Leave Qmodem ]════════════╗"
- text "║ Are you SURE? ║"
- text "║ ║"
- text "║ Yes ║"
- text "║ No ║"
- text "║ Exit with modem connected ║"
- text "╚═════════════════════════════╝"
- select 4,3,27,Keyy
- select 5,3,27,Keyn
- select 6,3,27,keyx
- pend
-
- dialmen: popup 12,8,bold
- text "╔═[ Re-Dial Action ]══╗"
- text "║ Cycle Call ║"
- text "║ Delete Call ║"
- text "║ Abort ║"
- text "║ Cancel Menu ║"
- text "╚═════════════════════╝"
- select 2,2,21,Keyc
- select 3,2,21,keyd
- select 4,2,21,keyesc
- select 5,2,21
- pend
-
- ; Mouse help
-
- mousehlp: popup 2,1
- text "╔════════════════ MOUSE HELP ══════════════════╗"
- text "║ ║"
- text "║ Left button - Displays Main menu ║"
- text "║ Right button - Displays Mouse Help menu ║"
- text "║ Both buttons - Cancels action-in-progress ║"
- text "║ ║"
- text "║ Moving the mouse up,down,left, or right will ║"
- text "║ cause the cursor to move in that direction. ║"
- text "║ ║"
- text "╚═══════════════════════════════════════════════╝"
- select 1,19,11
- pend
- ;
- ; --- Key Commands ---
- shellout: TYPE "EXIT"
- keyc: Type "C" ;C
- keyd: Type "D" ;D
- keyx: type "X" ;X
- keyy: type "Y" ;Y
- keyn: type "N" ;N
- keyesc: type 27 ;Escape
- keyspc: type " " ;Space
- keyaltc: type 0,46
- keydial: type 0,32,13
- keyaltf: Type 0,33
- keyalth: type 0,35
- keyaltp: type 0,25
- keyaltq: type 0,16
- keyaltr: type 0,19
- keyaltw: type 0,17
- keyaltx: type 0,45
- shfttab: type 0,15
- keyalta: type 0,30
- keyaltj: type 0,36
- keyaltl: type 0,38
- keyalto: type 0,24
- keyaltv: type 0,47
- keyalty: type 0,21
- keyaltb: type 0,48
- keyalte: type 0,18
- keyaltg: type 0,34
- keyalti: type 0,23
- keyaltm: type 0,50
- keyalts: type 0,31
- keyaltt: type 0,20
- keyaltz: type 0,44
- keyctnd: type 0,117
- keyctpt: type 0,114
-
- NOTHING: NOTHING
-
- RETURN: TYPE 13 ;Return
- PGUP: TYPE 0,73
- PGDN: TYPE 0,81
- LEFT: TYPE 0,75
- RIGHT: TYPE 0,77
- UP: TYPE 0,72
- DOWN: TYPE 0,80
- keycthm: type 0,119